#ifndef TEMPLATEPLUGIN_H
#define TEMPLATEPLUGIN_H

#include "SbotPlugin.h"

#include <QObject>
#include <QQmlComponent>
#include <QQmlContext>

#define PLUGIN_NAME "TemplatePlugin"
#define PLUGIN_IID "org.SBOT.SbotPlugin"
#define PLUGIN_QMLRES "qrc:/Qml/TemplatePlugin.qml"
#define PLUGIN_LOGO ":/Res/Icon/TemplatePluginLogo.png"

class TemplatePlugin : public SbotPlugin {
    Q_OBJECT

    Q_PLUGIN_METADATA(IID PLUGIN_IID FILE "plugin.json")
    Q_INTERFACES(SbotPlugin)

  public:
    explicit TemplatePlugin(QObject* parent = nullptr);
    void PluginInitAtThreadHook() override;
    int PluginThreadLoop() override;
};

#endif  // TEMPLATEPLUGIN_H
